from django.db import models

# Create your models here.

class User(models.Model):
    id=models.AutoField(primary_key=True)
    uname=models.CharField(max_length=20,null=False)
    upwd=models.CharField(max_length=20,null=False)

class Book(models.Model):
    id = models.AutoField(primary_key=True)
    title = models.CharField(max_length=20, null=False)
    create=models.DateTimeField(auto_now_add=True)
    author=models.CharField(max_length=200,null=False)